<!DOCTYPE html>
<html>
<head>
	<title>用户管理</title>
	<#include "../common.ftl">
</head>
<body class="childrenBody">
<div class="layuimini-container">
	<div class="layuimini-main">
		<form class="layui-form" >
			<blockquote class="layui-elem-quote quoteBox">
				<form class="layui-form">
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input type="text" name="userName"
								   class="layui-input
						searchVal" placeholder="用户名" />
						</div>
						<a class="layui-btn search_btn" data-type="reload"><i
									class="layui-icon">&#xe615;</i> 搜索</a>
					</div>
				</form>
			</blockquote>
			<table id="userList" class="layui-table"  lay-filter="users"></table>
			<@security.authorize access="hasAnyRole('超级管理员')">
			<script type="text/html" id="toolbarDemo">
				<div class="layui-btn-container">
						<a class="layui-btn layui-btn-normal addNews_btn" lay-event="add">
							<i class="layui-icon">&#xe608;</i>
							添加用户
						</a>
						<a class="layui-btn layui-btn-normal delNews_btn" lay-event="del">
							<i class="layui-icon">&#xe608;</i>
							删除用户
						</a>
				</div>
			</script>
			</@security.authorize>

			<!--操作-->
			<@security.authorize access="hasAnyRole('超级管理员')">
				<script id="userListBar" type="text/html">
					<@security.authorize access="hasAnyRole('超级管理员')">
						<a class="layui-btn layui-btn-xs" id="edit" lay-event="edit">编辑</a>
					</@security.authorize>

					<@security.authorize access="hasAnyRole('超级管理员')">
						<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
					</@security.authorize>
				</script>
			</@security.authorize>
		</form>
	</div>
</div>
<script type="text/javascript" src="${ctx.contextPath}/public/js/user/user.js"></script>

</body>
</html>